<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <title>CruiseControl.NET : Using CruiseControl.NET with FitNesse</title>
	    <link rel="stylesheet" href="styles/site.css" type="text/css" />
        <META http-equiv="Content-Type" content="text/html; charset=UTF-8">	    
    </head>

    <body>
	    <table class="pagecontent" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff">
		    <tr>
			    <td valign="top" class="pagebody">
				    <div class="pageheader">
					    <span class="pagetitle">
                            CruiseControl.NET : Using CruiseControl.NET with FitNesse
                                                    </span>
				    </div>
				    <div class="pagesubheading">
					    This page last changed on May 23, 2006 by <font color="#0050B2">orogers</font>.
				    </div>

				    <h3><a name="UsingCruiseControl.NETwithFitNesse-RunningFitNesse"></a>Running <a href="http://fitnesse.org">FitNesse</a> tests as part of your build process</h3>

<p>Use the <a href="http://fitnesse.org/FitNesse.DotNet.DotNetTestRunner">TestRunner</a> which comes as part of the standard fitnesse distribution to run all the fitnesse tests and generate the results. You will need to use the <a href="Executable Task.html" title="Executable Task">&lt;exec&gt; task</a></p>

<h3><a name="UsingCruiseControl.NETwithFitNesse-IntegratingFitNesseresultsintotheBuildReport"></a>Integrating FitNesse results into the Build Report</h3>

<p>The output from the earlier step is in a format not suitable for the task. You can use the FormattingOption as mentioned <a href="http://fitnesse.org/FitNesse.DotNet.DotNetTestRunner">here</a> and by <a href="http://codebetter.com/blogs/jeffrey.palermo/archive/2005/09/13/131914.aspx">Jeffrey Palermo</a> to transform the result in xml format.</p>

<p>To see the results on dashboard, you will need to merge the xml results into your build log using <a href="File Merge Task.html" title="File Merge Task">File Merge Task</a>. And then update your dashboard.config file to include a Fitnesse Report build plugin:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-xml"><span class="code-tag">&lt;xslReportBuildPlugin description=<span class="code-quote">"Fitnesse Report"</span> actionName=<span class="code-quote">"FitnesseReport"</span> xslFileName=<span class="code-quote">"xsl\fitnesse.xsl"</span>/&gt;</span></pre>
</div></div>

<p>use a <a href="XSL Report Build Plugin.html" title="XSL Report Build Plugin">XSL Report Build Plugin</a> with the <a href="XSL Files.html" title="XSL Files">XSL File</a> <tt>fitnesse.xsl</tt>. Refer to the <a href="Web Dashboard.html" title="Web Dashboard">Web Dashboard</a> documentation for help on adding new plugin configuration.</p>

<p>You can use your own stylesheet, or use the one that has been included with ccnet in build <a href="http://ccnetlive.thoughtworks.com/CCNet-builds/1.1.0.2186/">1.1.0.2186</a> and later.</p>

				    
                    			    </td>
		    </tr>
	    </table>
	    <table border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr>
				<td height="12" background="http://confluence.public.thoughtworks.org//images/border/border_bottom.gif"><img src="images/border/spacer.gif" width="1" height="1" border="0"/></td>
			</tr>
		    <tr>
			    <td align="center"><font color="grey">Document generated by Confluence on Sep 29, 2009 20:59</font></td>
		    </tr>
	    </table>
    </body>
</html>